import pygame


class Ball(pygame.Rect):
    def __init__(self):
        super().__init__()

    def update(self):
        pass


class Player(pygame.Rect):
    def __init__(self):
        super().__init__()

    def update(self):
        pass


class Env:
    screen: pygame.Surface

    def __init__(self):
        self.ball = Ball()
        self.l_player = Player()
        self.r_player = Player()

        pygame.init()
        self.screen = pygame.display.set_mode((468, 80))  # type: pygame.Surface
        pygame.display.set_caption("Monkey Fever")
        pygame.mouse.set_visible(False)

        bg = pygame.Surface(self.screen.get_size())
        bg = bg.convert()
        bg.fill((250, 250, 250))

    def step(self):
        self.l_player.update()
        self.r_player.update()
        self.ball.update()

    def render(self):
        pass